/*
 * Copyright (C), 2002-2013, 苏宁易购电子商务有限公司
 * FileName: ExchangeCouponRecord.java
 * Author:   12070644@cnsuning.com
 * Date:     2012-12-22 上午00:00:00
 */
package com.suning.sawp.po.exchange;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 实体类订单发券记录
 *
 * @author 12070644@cnsuning.com
 */
@Entity(name = "exchange_coupon_record")
public class ExchangeCouponRecord implements Serializable {
    /**
     * Serial UID
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 券号
     */
    private String couponNo;
    /**
     * 券名称
     */
    private String couponName;
    /**
     * 券类型
     */
    private String couponType;
    /**
     * 券面值
     */
    private java.math.BigDecimal couponAmount;
    /**
     * 券使用规则id
     */
    private String couponRuleCode;
    /**
     * 发券时间
     */
    private java.util.Date sendTime;
    /**
     * 券使用开始时间
     */
    private java.util.Date couponStartTime;
    /**
     * 券使用截止时间
     */
    private java.util.Date couponEndTime;
    /**
     * 发券员工
     */
    private String employeeId;

    /**
     * 调发券接口的随机值
     */
    private String randomValue;

    /**
     * Get id
     *
     * @return id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.TABLE)
    @Column(name = "id")
    public Long getId() {
        return this.id;
    }

    /**
     * Set id
     *
     * @param id id
     */

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * Get orderNo
     *
     * @return orderNo
     */
    @Column(name = "order_no")
    public String getOrderNo() {
        return this.orderNo;
    }

    /**
     * Set orderNo
     *
     * @param orderNo 订单号
     */

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * Get couponNo
     *
     * @return couponNo
     */
    @Column(name = "coupon_no")
    public String getCouponNo() {
        return this.couponNo;
    }

    /**
     * Set couponNo
     *
     * @param couponNo 券号
     */

    public void setCouponNo(String couponNo) {
        this.couponNo = couponNo;
    }

    /**
     * Get couponName
     *
     * @return couponName
     */
    @Column(name = "coupon_name")
    public String getCouponName() {
        return this.couponName;
    }

    /**
     * Set couponName
     *
     * @param couponName 券名称
     */

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    /**
     * Get couponType
     *
     * @return couponType
     */
    @Column(name = "coupon_type")
    public String getCouponType() {
        return this.couponType;
    }

    /**
     * Set couponType
     *
     * @param couponType 券类型
     */

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }

    /**
     * Get couponAmount
     *
     * @return couponAmount
     */
    @Column(name = "coupon_amount")
    public java.math.BigDecimal getCouponAmount() {
        return this.couponAmount;
    }

    /**
     * Set couponAmount
     *
     * @param couponAmount 券面值
     */

    public void setCouponAmount(java.math.BigDecimal couponAmount) {
        this.couponAmount = couponAmount;
    }

    /**
     * Get couponRuleCode
     *
     * @return couponRuleCode
     */
    @Column(name = "coupon_rule_code")
    public String getCouponRuleCode() {
        return this.couponRuleCode;
    }

    /**
     * Set couponRuleCode
     *
     * @param couponRuleCode 券使用规则id
     */

    public void setCouponRuleCode(String couponRuleCode) {
        this.couponRuleCode = couponRuleCode;
    }

    /**
     * Get sendTime
     *
     * @return sendTime
     */
    @Column(name = "send_time")
    public java.util.Date getSendTime() {
        return this.sendTime;
    }

    /**
     * Set sendTime
     *
     * @param sendTime 发券时间
     */

    public void setSendTime(java.util.Date sendTime) {
        this.sendTime = sendTime;
    }

    /**
     * Get couponStartTime
     *
     * @return couponStartTime
     */
    @Column(name = "coupon_start_time")
    public java.util.Date getCouponStartTime() {
        return this.couponStartTime;
    }

    /**
     * Set couponStartTime
     *
     * @param couponStartTime 券使用开始时间
     */

    public void setCouponStartTime(java.util.Date couponStartTime) {
        this.couponStartTime = couponStartTime;
    }

    /**
     * Get couponEndTime
     *
     * @return couponEndTime
     */
    @Column(name = "coupon_end_time")
    public java.util.Date getCouponEndTime() {
        return this.couponEndTime;
    }

    /**
     * Set couponEndTime
     *
     * @param couponEndTime 券使用截止时间
     */

    public void setCouponEndTime(java.util.Date couponEndTime) {
        this.couponEndTime = couponEndTime;
    }

    /**
     * Get employeeId
     *
     * @return employeeId
     */
    @Column(name = "employee_id")
    public String getEmployeeId() {
        return this.employeeId;
    }

    /**
     * Set employeeId
     *
     * @param employeeId 发券员工
     */

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    @Column(name = "random_value")
    public String getRandomValue() {
        return randomValue;
    }

    public void setRandomValue(String randomValue) {
        this.randomValue = randomValue;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ExchangeCouponRecord{");
        sb.append(" id=").append(id);
        sb.append(", orderNo='").append(orderNo).append('\'');
        sb.append(", couponNo='").append(couponNo).append('\'');
        sb.append(", couponName='").append(couponName).append('\'');
        sb.append(", couponType='").append(couponType).append('\'');
        sb.append(", couponAmount=").append(couponAmount);
        sb.append(", couponRuleCode='").append(couponRuleCode).append('\'');
        sb.append(", sendTime=").append(sendTime);
        sb.append(", couponStartTime=").append(couponStartTime);
        sb.append(", couponEndTime=").append(couponEndTime);
        sb.append(", employeeId='").append(employeeId).append('\'');
        sb.append(", randomValue='").append(randomValue).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
